{include file="public/header"}
<style>
    #des{
        position: relative;
        z-index: 0;
    }
</style>
<form class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin" style="padding: 20px 20px 20px 0;">
    <input type="hidden" value="{$info['id']}" name="id">
    <div class="layui-form-item">
        <label class="layui-form-label">商品名称</label>
        <div class="layui-input-block">
            <input value="{$info['name']}" type="text" name="name" placeholder="请输入商品名称" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">商品单位</label>
        <div class="layui-input-block">
            <select name="unit">
                <option value="weight" {if $info.unit == 'weight'}selected{/if}>斤</option>
                <option value="number" {if $info.unit == 'number'}selected{/if}>个</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">多少起卖</label>
        <div class="layui-input-block">
            <input value="{$info['weight']}" type="text" name="weight" placeholder="请输入多少起卖" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">所属版块</label>
        <div class="layui-input-block">
            <select name="nav_id">
                {volist name="nav" id="v" key="k"}
                <option value="{$k-1}" {if $info.nav_id == $k-1}selected{/if}>{$v}</option>
                {/volist}
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">所属菜单</label>
        <div class="layui-input-block">
            <select name="menu_id">
                {volist name="menu_arr" id="v"}
                <option value="{$v.id}" {if $info.menu_id == $v.id}selected{/if}>{$v.name}</option>
                {/volist}
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">排序</label>
        <div class="layui-input-block">
            <input value="{$info['sort']}" type="text" name="sort" placeholder="请输入排序" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="LAY-user-front-submit" id="LAY-user-front-submit" value="确认">
    </div>
</form>

<script src="__ADMIN__/layuiadmin/layui/layui.js"></script>
<script type="text/javascript">
    window.HOST_TYPE='2'
</script>
<script>
    layui.config({
        base: '__ADMIN__/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['form'], function(){
        var $ = layui.$
            ,form = layui.form
    })
</script>
{include file="public/footer"}